#!/bin/bash

path=`cd "$( dirname ${BASH_SOURCE[0]} )" && pwd`
config=$path/config
bin=$path/bin
yunzai=`cat $config/yunzai.txt`
cd $path

echo "获取喵喵版云崽"
source $bin/git.sh https://gitee.com/yoimiya-kokomi/Miao-Yunzai.git ./$yunzai
cd $yunzai
echo "获取云崽插件"
i=1
tmpStr=""
for plugin in `cat $config/plugins.txt`
do
	if [[ `echo $plugin | cut -c 1` == "#" ]];then
		#是注释跳过
		continue
	elif ((i%2==0));then
		source $bin/git.sh $tmpStr $plugin
		tmpStr=""
	else
		tmpStr=$plugin
	fi
	((i=$i+1))
done
cd $path




